package com.zelix;

import java.io.*;
import java.util.Hashtable;

abstract class o5 extends pt {

    int j;
    hu n[];
    boolean o;
    byte p[];
    private static String z[];

    o5(kt kt1, int i, String s, jb jb1, qy qy, PrintWriter printwriter, String s1) throws IOException, tb {
        super(kt1, i, s, jb1, qy);
        byte abyte0[];
        jb jb2;
        int l;
        l = kt.i;
        o = true;
        abyte0 = new byte[super.m];
        jb1.read(abyte0);
        jb2 = jb.a(abyte0, false);
        int k;
        if (super.m >= 2) {
            j = jb2.readUnsignedShort();
            if (j * 10 + 2 == super.m) {
                n = new hu[j];
                for (k = 0; k < j; k++) {
                    n[k] = new hu(this, jb2, qy);
                    if (!o || n[k].k)
                        continue;
                    o = false;
                    printwriter.println(i() + z[1] + s1 + z[4]);
                    p = abyte0;
                }
            } else {
                // L212
                o = false;
                printwriter.println(i() + z[1] + s1 + z[3] + j + z[2] + super.m);
                p = abyte0;
            }
        } else {
            // L293
            o = false;
            printwriter.println(i() + z[1] + s1 + z[0] + super.m);
            p = abyte0;
        }
        jb2.close();
    }

    o5(kt kt1, zs zs, int i) {
        super(kt1, zs, i);
        o = true;
    }

    public final void a(Hashtable hashtable) {
        int k;
        k = kt.i;
        super.a(hashtable);
        if (o) {
            for (int i = 0; i < j; i++) {
                n[i].a(hashtable);
            }
        }
    }

    protected final void a(DataOutputStream dataoutputstream, Hashtable hashtable, nh nh)
            throws IOException, tb {
        int i;
        super.a(dataoutputstream, hashtable, nh);
        if (o) {
            dataoutputstream.writeShort(j);
            for (i = 0; i < j; i++) {
                n[i].a(dataoutputstream, hashtable);
            }
            dataoutputstream.write(p);
        }
    }

    final void a(DataOutputStream dataoutputstream)
            throws IOException, tb {
        int i;
        int k;
        k = kt.i;
        dataoutputstream.writeShort(j);
        for (i = 0; i < n.length; i++) {
            n[i].a(dataoutputstream);
        }
    }

    private static String z(char[] chs) {
        for (int i = 0; i < chs.length; i++) {
            byte key = 0;
            switch (i % 5) {
                case 0:
                    key = 0x5b;
                    break;
                case 1:
                    key = 47;
                    break;
                case 2:
                    key = 77;
                    break;
                case 3:
                    key = 101;
                    break;
                default:
                    key = 80;
                    break;
            }
            chs[i] ^= key;
        }
        return new String(chs).intern();
    }


    static {
        String as[];
        as = new String[5];
        as[0] = "{\007\017Lpa\017!\000><[%X";
        as[1] = "{\025m";
        as[2] = "{C(\0137/Gp";
        as[3] = "{\007\fLpa\017.\n%5[p";
        as[4] = "{\007\016L";
        for (int i = 0; i < as.length; i++) {
            as[i] = z(as[i].toCharArray());
        }
        z = as;
    }
}